package cc.htdf.gwc.datacompare.repository;

import cc.htdf.gwc.datacompare.domain.DataCompare;
import cc.htdf.gwc.datacompare.domain.PrecipTs;
import com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException;
import org.springframework.dao.DuplicateKeyException;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2017/11/2.
 */
public interface PrecipScoreRepository {

    /**
     * 批量存储比较结果
     * @param datas
     */
    void batchSaveScoreData(List<DataCompare> datas) throws MySQLIntegrityConstraintViolationException, DuplicateKeyException;

    /**
     * 查询降雨时段
     */
    List<Map<String, Object>> queryPrecip();

    void saveScoreData(List<PrecipTs> datas) throws MySQLIntegrityConstraintViolationException, DuplicateKeyException;
}
